package com.oreilly.ez.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_log")
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class SysLog {


    @Id
    @GeneratedValue
    private Integer sid;
    private String scode;
    private String note;


    @Column(name = "request_id")
    private String requestId;

    private String method;

    private String params;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date udate;


    private String title;
}
